package com.hxgis.oc.runner;

import com.hxgis.oc.product.w3d.Grib2w3d;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Order(value = 1)
public class StartupRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        Grib2w3d.convert();

        CmaRunner.runIfSet();
        NecpRunner.runIfSet();
    }
}
